package com.wedimob.query;

import com.wedimob.bo.SerializableBO;

public class SearchCriteria extends SerializableBO<SearchCriteria> {

	private String keyword;
	private SearchType keyWordType;
	private SortBy sortBy;
	private int begin;
	private int limit;

	public SearchCriteria(String keyword, SortBy sortBy, int begin, int limit) {
		super();
		this.keyword = keyword;
		this.sortBy = sortBy;
		this.begin = begin;
		this.limit = limit;
	}

	public String getKeyword() {
		return keyword;
	}

	public SearchType getSearchType() {
		return keyWordType;
	}

	public void setSearchType(SearchType keyWordType) {
		this.keyWordType = keyWordType;
	}

	public SortBy getSortBy() {
		return sortBy;
	}

	public int getLimit() {
		return limit;
	}

	public int getBegin() {
		return begin;
	}

	public static SearchCriteria create(String keyword, SortBy sortBy,
			int begin, int limit) {
		return new SearchCriteria(keyword, sortBy, begin, limit);
	}
}
